!\bin\bash

## return to parent directory
cd ..


########################################################
## experiment script case 1 for MPack                 ##
########################################################

# Untarget
## objection list: MPack

## VGG16

### run
# for base_size in 1 2 3 4 5 6 7 8 9 10
# do 
#     echo "CUDA_VISIBLE_DEVICES=3 python main.py --exp_type untarget --exp_case case_1_2  --epsilon 0.05 --dataset CIFAR-10 --model_arch VGG16 --exp_obj MPack --base_size $base_size"
#     CUDA_VISIBLE_DEVICES=3 python main.py --exp_type untarget --exp_case case_1_2 --epsilon 0.05 --dataset CIFAR-10 --model_arch VGG16 --exp_obj MPack --base_size $base_size
# done

## ResNet18

### run
# for base_size in 1 2 3 4 5 6 7 8 9 10
# do 
#     echo "CUDA_VISIBLE_DEVICES=3 python main.py --exp_type untarget --exp_case case_1_2 -epsilon 0.05 --dataset CIFAR-10 --model_arch ResNet18 --exp_obj MPack --base_size $base_size"
#     CUDA_VISIBLE_DEVICES=3 python main.py --exp_type untarget --exp_case case_1_2 --epsilon 0.05 --dataset CIFAR-10 --model_arch ResNet18 --exp_obj MPack --base_size $base_size
# done


########################################################
## experiment script case 1 for SMPack                ##
########################################################

# Untarget
## objection list: SMPack
## list : 1, 4, 7, 10, 
## list: 2, 3, 5, 6, 8, 9
## VGG16

### run
# for base_size in 2 3 5 6 8 9
# do 
#     echo "CUDA_VISIBLE_DEVICES=3 python main.py --exp_type untarget --exp_case case_1_2  --epsilon 0.05 --dataset CIFAR-10 --model_arch VGG16 --exp_obj SMPack --base_size $base_size"
#     CUDA_VISIBLE_DEVICES=3 python main.py --exp_type untarget --exp_case case_1_2 --epsilon 0.05 --dataset CIFAR-10 --model_arch VGG16 --exp_obj SMPack --base_size $base_size
# done

## ResNet18

### run
# for base_size in 2 3 5 6 8 9
# do 
#     echo "CUDA_VISIBLE_DEVICES=3 python main.py --exp_type untarget --exp_case case_1_2 -epsilon 0.05 --dataset CIFAR-10 --model_arch ResNet18 --exp_obj SMPack --base_size $base_size"
#     CUDA_VISIBLE_DEVICES=3 python main.py --exp_type untarget --exp_case case_1_2 --epsilon 0.05 --dataset CIFAR-10 --model_arch ResNet18 --exp_obj SMPack --base_size $base_size
# done


### show

# for base_size in 1 4 7 10
# do 
#     echo "CUDA_VISIBLE_DEVICES=2 python main.py --exp_type untarget --exp_case show -epsilon 0.05 --dataset CIFAR-10 --model_arch VGG16 --exp_obj SMPack --base_size $base_size"
#     CUDA_VISIBLE_DEVICES=2 python main.py --exp_type untarget --exp_case show --epsilon 0.05 --dataset CIFAR-10 --model_arch VGG16 --exp_obj SMPack --base_size $base_size
# done

# for base_size in 1 4 7 10
# do 
#     echo "CUDA_VISIBLE_DEVICES=2 python main.py --exp_type untarget --exp_case show -epsilon 0.05 --dataset CIFAR-10 --model_arch ResNet18 --exp_obj SMPack --base_size $base_size"
#     CUDA_VISIBLE_DEVICES=2 python main.py --exp_type untarget --exp_case show --epsilon 0.05 --dataset CIFAR-10 --model_arch ResNet18 --exp_obj SMPack --base_size $base_size
# done


### total plot
# echo "CUDA_VISIBLE_DEVICES=3 python main.py --exp_type untarget --exp_case case_param_base_size -epsilon 0.05 --dataset CIFAR-10 --model_arch ResNet18"
# CUDA_VISIBLE_DEVICES=3 python main.py --exp_type untarget --exp_case case_param_base_size --epsilon 0.05 --dataset CIFAR-10 --model_arch ResNet18



########################################################
## experiment script case 2 for MPack                 ##
########################################################

## considering the base batch problem
## consider base batch 1, 2, 4, 8, 16
## just consider untarget attack

## run

### VGG16

# for base_batch in 1 2 4 8
# do 
#     echo "CUDA_VISIBLE_DEVICES=2 python main.py --exp_type untarget --exp_case case_1_2  --epsilon 0.05 --dataset CIFAR-10 --model_arch VGG16 --exp_obj MPack --base_batch $base_batch"
#     CUDA_VISIBLE_DEVICES=2 python main.py --exp_type untarget --exp_case case_1_2 --epsilon 0.05 --dataset CIFAR-10 --model_arch VGG16 --exp_obj MPack --base_batch $base_batch
# done

# for base_batch in 1 2 4 8 16
# do 
#     echo "CUDA_VISIBLE_DEVICES=2 python main.py --exp_type untarget --exp_case show -epsilon 0.05 --dataset CIFAR-10 --model_arch VGG16 --exp_obj MPack --base_batch $base_batch"
#     CUDA_VISIBLE_DEVICES=2 python main.py --exp_type untarget --exp_case show --epsilon 0.05 --dataset CIFAR-10 --model_arch VGG16 --exp_obj MPack --base_batch $base_batch
# done


### ResNet18

# for base_batch in 1 2 4 8
# do 
#     echo "CUDA_VISIBLE_DEVICES=2 python main.py --exp_type untarget --exp_case case_1_2 -epsilon 0.05 --dataset CIFAR-10 --model_arch ResNet18 --exp_obj MPack --base_batch $base_batch --population_size 200"
#     CUDA_VISIBLE_DEVICES=2 python main.py --exp_type untarget --exp_case case_1_2 --epsilon 0.05 --dataset CIFAR-10 --model_arch ResNet18 --exp_obj MPack --base_batch $base_batch --population_size 200
# done

# for base_batch in 1 2 4 8 16
# do 
#     echo "CUDA_VISIBLE_DEVICES=2 python main.py --exp_type untarget --exp_case show -epsilon 0.05 --dataset CIFAR-10 --model_arch ResNet18 --exp_obj MPack --base_batch $base_batch"
#     CUDA_VISIBLE_DEVICES=2 python main.py --exp_type untarget --exp_case show --epsilon 0.05 --dataset CIFAR-10 --model_arch ResNet18 --exp_obj MPack --base_batch $base_batch
# done


########################################################
## experiment script case 2 for SMPack                 ##
########################################################

## considering the base batch problem
## consider base batch 1, 2, 4, 8, 16
## just consider untarget attack

## run

### VGG16

# for base_batch in 1 2 4 8
# do 
#     echo "CUDA_VISIBLE_DEVICES=2 python main.py --exp_type untarget --exp_case case_1_2 --epsilon 0.05 --dataset CIFAR-10 --model_arch VGG16 --exp_obj SMPack --base_batch $base_batch"
#     CUDA_VISIBLE_DEVICES=2 python main.py --exp_type untarget --exp_case case_1_2 --epsilon 0.05 --dataset CIFAR-10 --model_arch VGG16 --exp_obj SMPack --base_batch $base_batch
# done

# for base_batch in 1 2 4 8 16
# do 
#     echo "CUDA_VISIBLE_DEVICES=2 python main.py --exp_type untarget --exp_case show -epsilon 0.05 --dataset CIFAR-10 --model_arch VGG16 --exp_obj SMPack --base_batch $base_batch"
#     CUDA_VISIBLE_DEVICES=2 python main.py --exp_type untarget --exp_case show --epsilon 0.05 --dataset CIFAR-10 --model_arch VGG16 --exp_obj SMPack --base_batch $base_batch
# done


### ResNet18

# for base_batch in 1 2 4 8
# do 
#     echo "CUDA_VISIBLE_DEVICES=2 python main.py --exp_type untarget --exp_case case_1_2 --epsilon 0.05 --dataset CIFAR-10 --model_arch ResNet18 --exp_obj SMPack --base_batch $base_batch"
#     CUDA_VISIBLE_DEVICES=2 python main.py --exp_type untarget --exp_case case_1_2 --epsilon 0.05 --dataset CIFAR-10 --model_arch ResNet18 --exp_obj SMPack --base_batch $base_batch
# done

# for base_batch in 1 2 4 8 16
# do 
#     echo "CUDA_VISIBLE_DEVICES=2 python main.py --exp_type untarget --exp_case show -epsilon 0.05 --dataset CIFAR-10 --model_arch ResNet18 --exp_obj SMPack --base_batch $base_batch"
#     CUDA_VISIBLE_DEVICES=2 python main.py --exp_type untarget --exp_case show --epsilon 0.05 --dataset CIFAR-10 --model_arch ResNet18 --exp_obj SMPack --base_batch $base_batch
# done


### total plot
echo "CUDA_VISIBLE_DEVICES=3 python main.py --exp_type untarget --exp_case case_param_base_batch -epsilon 0.05 --dataset CIFAR-10 --model_arch ResNet18"
CUDA_VISIBLE_DEVICES=3 python main.py --exp_type untarget --exp_case case_param_base_batch --epsilon 0.05 --dataset CIFAR-10 --model_arch ResNet18

